# -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import ValidationError

class Empcalenderpeo(models.Model):
    _name = 'emp.calenderpeo'
    peo_id = fields.Many2one(comodel_name='emp.peo')

    autono = fields.Char('人員自動編號')
    pautono = fields.Char('電腦自動編號')
    cname = fields.Char('姓名(中文)')
    pno = fields.Char('職員編號')
    calenderdate = fields.Char('設定日期')
    amstart = fields.Char('上班時間點')
    noonstart = fields.Char('午休開始時間')
    pmstart = fields.Char('下班時間點')
    amend = fields.Char('上班刷卡允許時間')
    noonend = fields.Char('午休結束時間')
    pmend = fields.Char('下班刷卡允許時間')
    duty = fields.Char('當天是否上班') #boolean
    memo = fields.Char('備註')
    startdate = fields.Char('核准日期')
    leavebasic = fields.Char('請假基準')
    type = fields.Char('個人排班分類')
    shift = fields.Char('排班時間類別')
    update_pno = fields.Char()
    work_category = fields.Char()